<?php
header("Content-Type:text/html;charset=utf-8");
include('huihua.php');
include('db-conn.php');
$user=$_POST['name'];
$company=$_POST['cname'];
$time=$_POST['date'];
$point=$_POST['text'];

$tianxie="insert into jiuye.company(name,cname,time,point) values('$user','$company','$time','$point');";
if(mysqli_query($conn,$tianxie)===true){
    echo "<script>alert('提交成功');window.location.href='list.php';</script>";
};
mysqli_close($conn);

?>